<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/include/taglib.jsp" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <%@ include file="/WEB-INF/include/head.jsp" %>
</head>

<body class="sticky-header">

<section>
    <%@ include file="/WEB-INF/include/menu.jsp" %>

    <div class="main-content" style="min-height: 900px">
        <div class="header-section">

            <a class="toggle-btn"><i class="fa fa-bars"></i></a>

            <div class="menu-right">
                <ul class="notification-menu">
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle info-number" data-toggle="dropdown">
                            <i class="fa fa-envelope-o"></i>
                            <span class="badge">5</span>
                        </a>
                        <div class="dropdown-menu dropdown-menu-head pull-right">
                            <h5 class="title">You have 5 Mails </h5>
                        </div>
                    </li>
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            <img src="${cxStatic}images/photos/user-avatar.png" alt=""/>
                            John Doe
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                            <li><a href="#"><i class="fa fa-user"></i> Profile</a></li>
                            <li><a href="#"><i class="fa fa-cog"></i> 修改密码 </a></li>
                            <li><a href="#"><i class="fa fa-sign-out"></i> 退出</a></li>
                        </ul>
                    </li>

                </ul>
            </div>
        </div>

        <div class="wrapper">
            <div class="mail-box">
                <section class="mail-box-info">
                    <section class="mail-list">
                        <ul>
                            <li style="text-align: center">
                                <strong>${notifyUserView.title}</strong>
                                <c:choose>
                                    <c:when test="${notifyUserView.type=='O'}">
                                        <span class="fb">外部公告</span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="fb">内部公告</span>
                                    </c:otherwise>
                                </c:choose>
                            </li>



                            <li style="margin-top: 10px">
                                <h4><p style="line-height:35px;">${notifyUserView.content}</p></h4>
                            </li>
                        </ul>

                        <div class="col-lg-12" style="padding-top: 48px;line-height: 40px">
                            <div style="float: left;">下发对象:</div>
                            <!--如果是外部园区-->
                            <c:choose>
                                <c:when test="${notifyUserView.type=='O'}">
                                    <c:forEach items="${notifyfarmList}" var="list">
                                        <a class="btn  popovers" data-toggle="tooltip " data-trigger="hover" data-placement="top"
                                           data-content="读取状态:${list.readFlag==false ? '未读':'已读'}"
                                           href="javascript:;"
                                           style="display:inline-block;border:1px dashed #ccc;padding:2px 4px;margin-left:10px"
                                           tool-tip="1000000">
                                                ${list.parkName}
                                        </a>
                                    </c:forEach>
                                </c:when>
                                <c:otherwise>
                                    <c:forEach items="${notifySysUserViewList}" var="sys">
                                        <a class="btn  popovers" data-toggle="tooltip " data-trigger="hover" data-placement="top"
                                           data-content="读取状态:${sys.readFlag==false ? '未读':'已读'}"
                                           data-original-title="用户状态:${sys.userStatus eq 1 ?'正常':'停用'}"
                                           href="javascript:;"
                                           style="display:inline-block;border:1px dashed #ccc;padding:2px 4px;margin-left:10px"
                                           tool-tip="1000000">
                                                ${sys.username}
                                        </a>
                                    </c:forEach>
                                </c:otherwise>
                            </c:choose>
                        </div>
                        <div class="col-lg-12" style="padding-top: 20px;line-height: 40px">
                                <div style="float: left;">附件信息:</div>
                                <div>
                                    <c:forEach items="${notifyAttachmentViewList}" var="list2">
                                        <a class="btn  popovers" data-toggle="tooltip " data-trigger="hover" data-placement="top"
                                           href="${ctx}/${list2.filePath}"
                                           style="display:inline-block;border:1px dashed #ccc;padding:2px 4px;margin-left:10px"
                                           tool-tip="1000000">
                                                ${list2.fileName}
                                        </a>
                                    </c:forEach>
                                    <a href="" style="float: right" download="">打包下载</a>
                                </div>

                        </div>
                    </section>
                </section>
            </div>
        </div>

        <%@ include file="/WEB-INF/include/footer.jsp" %>

    </div>
        <%@ include file="/WEB-INF/include/js.jsp" %>
</body>
</html>
